package refactor.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import com.baomidou.mybatisplus.annotation.TableField;
    import java.io.Serializable;
    import lombok.Data;
    import lombok.EqualsAndHashCode;
    import lombok.experimental.Accessors;

/**
* <p>
    * 用户表：记录使用此系统的用户相关数据
    * </p>
*
* @author 杨健
* @since 2019-08-19
*/
    @Data
        @EqualsAndHashCode(callSuper = false)
    @Accessors(chain = true)
    public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    public User(){}

    public User(Integer organizationId, Integer roleId, Integer regionId, String code, String name, String password, String nameDigest, String passwordDigest, String realName, String sex, String idCard, String phoneNumber, String email, String qq, String weChat, String openId, String avatar, Long registerTime, String frozen, String roleName, String authorityInfo) {
        this.organizationId = organizationId;
        this.roleId = roleId;
        this.regionId = regionId;
        this.code = code;
        this.name = name;
        this.password = password;
        this.nameDigest = nameDigest;
        this.passwordDigest = passwordDigest;
        this.realName = realName;
        this.sex = sex;
        this.idCard = idCard;
        this.phoneNumber = phoneNumber;
        this.email = email;
        this.qq = qq;
        this.weChat = weChat;
        this.openId = openId;
        this.avatar = avatar;
        this.registerTime = registerTime;
        this.frozen = frozen;
        this.roleName = roleName;
        this.authorityInfo = authorityInfo;
    }

    /**
            * 主键
            */
            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

        @TableField("organization_id")
    private Integer organizationId;

        @TableField("role_id")
    private Integer roleId;

        @TableField("region_id")
    private Integer regionId;

            /**
            * 用户编码
            */
        @TableField("code")
    private String code;

            /**
            * 用户名
            */
        @TableField("name")
    private String name;

            /**
            * 密码
            */
        @TableField("password")
    private String password;

            /**
            * 用户名摘要
            */
        @TableField("name_digest")
    private String nameDigest;

            /**
            * 密码摘要
            */
        @TableField("password_digest")
    private String passwordDigest;

            /**
            * 真实姓名
            */
        @TableField("real_name")
    private String realName;

            /**
            * 性别,0:男，1:女
            */
        @TableField("sex")
    private String sex;

            /**
            * 身份证号
            */
        @TableField("id_card")
    private String idCard;

            /**
            * 电话号码
            */
        @TableField("phone_number")
    private String phoneNumber;

            /**
            * 邮箱
            */
        @TableField("email")
    private String email;

            /**
            * QQ号
            */
        @TableField("qq")
    private String qq;

            /**
            * 微信
            */
        @TableField("we_chat")
    private String weChat;

            /**
            * 微信openid
            */
        @TableField("open_id")
    private String openId;

            /**
            * 头像路径
            */
        @TableField("avatar")
    private String avatar;

            /**
            * 注册时间
            */
        @TableField("register_time")
    private Long registerTime;

            /**
            * 冻结账号，0：非冻结，1：删除和冻结，2: 新增用户初始状态
            */
        @TableField("frozen")
    private String frozen;

        @TableField("role_name")
    private String roleName;

        @TableField("authority_info")
    private String authorityInfo;



}
